package org.butterfly.irms.service;

import org.butterfly.irms.dao.RegionDao;
import org.butterfly.irms.model.mapstruct.RegionMapper;
import org.butterfly.irms.model.vo.RegionVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionService {
    @Autowired
    private RegionDao regionDao;

    public List<RegionVO> queryRegion() {
        return RegionMapper.INSTANCE.toVoList(regionDao.queryRegion());
    }
}
